package cn.shop.transcation.order.mapper;

import cn.shop.transcation.order.entity.Cart;
import cn.shop.transcation.order.entity.CertQueryReq;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * @author : 李一涵
 * @date : Created in 2022/5/23 10:16
 * @description :
 */
@Mapper
public interface CartMapper extends BaseMapper<Cart> {

    Page<Cart> queryCarts(@Param("page") Page<Cart> page, @Param("req") CertQueryReq req, @Param("alias") String alias);

    List<Long> cartOrders(@Param("userId") long uid, @Param("alias") String alias);
}
